import request from '@/utils/request'

class roadService {

  //路段列表
  select(params) {
    return request({
      url: '/section/select',
      method: 'post',
      data: params
    })
  }

  list(params) {
    return request({
      url: '/section/list',
      method: 'get',
      data: params
    })
  }
  //路段添加
  add(params) {
    return request({
      url: '/section/add',
      method: 'post',
      data: params
    })
  }
  //路段更新
  get(params) {
    return request({
      url: '/section/get',
      method: 'get',
      data: params
    })
  }
  //路段更新保存
  update(params) {
    return request({
      url: '/section/update',
      method: 'post',
      data: params
    })
  }
  //路段删除
  del(params) {
    return request({
      url: '/section/del',
      method: 'post',
      data: params
    })
  }

}

export default new roadService()